<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="lib/vue.js"></script>
</head>
<body>
    <div id="root">
        <input @keydown.enter="fn" placeholder="enter">
        <input @keydown.13="fn" placeholder="enter的编号为13">
        <input @keydown.ctrl.c="fn" placeholder="ctrl+c">
    </div>
</body>
<script>
    new Vue({
        el : '#root',
        methods : {
            fn(e){
                console.log(e.keyCode)
            }
        }
    })
</script>
</html>